document.addEventListener('DOMContentLoaded', function () {
    const loginBtn = document.getElementById('login-btn');
    loginBtn.addEventListener('click', function () {
      const username = document.getElementById('username').value;
      const password = document.getElementById('password').value;
      // 这里只是简单模拟登录成功的提示，实际应用中需要后端验证
      if (username && password) {
        alert('登录成功');
      } else {
        alert('请输入账号和密码');
      }
    });
  });